From: Jostein Kjønigsen Date: Fri, 25 Apr 2025 13:29:31 +0000 (+0200) Subject: Fix compilation-mode matches for csharp-mode (bug#78128) X-Git-Tag: archive/raspbian/1%30.2+1-2+rpi1^2~2^2~24^2~108 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22Program/%22http:/www.example.com/cgi/%22https:/%22Program?a=commitdiff_plain;h=ebeaa728b66d0674fa499bf0bf2ae573ec9984aa;p=emacs.git Fix compilation-mode matches for csharp-mode (bug#78128) * lisp/progmodes/csharp-mode.el: (csharp-compilation-re-dotnet-error): (csharp-compilation-re-dotnet-warning): Ignore leading whitespace. --- diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el index 55ae7db714b..3e372546eb6 100644 --- a/lisp/progmodes/csharp-mode.el +++ b/lisp/progmodes/csharp-mode.el @@ -591,10 +591,10 @@ compilation and evaluation time conflicts." "Regexp to match compilation warning from xbuild.") (defconst csharp-compilation-re-dotnet-error - "\\([^\r\n]+\\) : error [A-Z]+[0-9]+:") + "[[:blank:]]*\\([^\r\n]+\\) : error [A-Z]+[0-9]+:") (defconst csharp-compilation-re-dotnet-warning - "\\([^\r\n]+\\) : warning [A-Z]+[0-9]+:") + "[[:blank:]]*\\([^\r\n]+\\) : warning [A-Z]+[0-9]+:") (defconst csharp-compilation-re-dotnet-testfail (concat